package com.mux.springboot.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * 读取指定的配置文件
 * @PropertySource
 * @author devin.chen
 *
 */
@Component
@ConfigurationProperties(prefix="author",locations = "classpath:config/author.properties")
public class AuthorSettings {
	private String name;
	private int age;
	
	 
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	
}
